[id].js 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521
  1. "use strict";
  2. (() => {
  3. var exports = {};
  4. exports.id = 23723;
  5. exports.ids = [23723,64820];
  6. exports.modules = {
  7. /***/ 13866:
  8. /***/ ((module, __webpack_exports__, __webpack_require__) => {
  9. __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
  10. __webpack_require__.r(__webpack_exports__);
  11. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  12. /* harmony export */ "default": () => (/* binding */ pageWrapperTemplate),
  13. /* harmony export */ "getServerSideProps": () => (/* binding */ getServerSideProps),
  14. /* harmony export */ "getStaticPaths": () => (/* binding */ getStaticPaths),
  15. /* harmony export */ "getStaticProps": () => (/* binding */ getStaticProps)
  16. /* harmony export */ });
  17. /* harmony import */ var _sentry_server_config_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96270);
  18. /* harmony import */ var _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(58097);
  19. /* harmony import */ var _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__);
  20. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(20997);
  21. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__);
  22. /* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(71853);
  23. /* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(next_router__WEBPACK_IMPORTED_MODULE_3__);
  24. /* harmony import */ var next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(60866);
  25. /* harmony import */ var next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_4__);
  26. /* harmony import */ var _changelog_module_scss__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(83881);
  27. /* harmony import */ var _changelog_module_scss__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_changelog_module_scss__WEBPACK_IMPORTED_MODULE_13__);
  28. /* harmony import */ var _components_NextSeoWrapper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(25869);
  29. /* harmony import */ var _components_PageContainer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(9234);
  30. /* harmony import */ var _components_Sanity_LocalizationMessage__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(75162);
  31. /* harmony import */ var _components_Sanity_Page__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(67830);
  32. /* harmony import */ var _dls_Spinner_Spinner__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(7190);
  33. /* harmony import */ var _lib_sanity__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(1672);
  34. /* harmony import */ var _utils_navigation__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(57933);
  35. /* harmony import */ var _utils_staticPageGeneration__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(45137);
  36. /* harmony import */ var src_pages_error__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(36049);
  37. var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_components_Sanity_Page__WEBPACK_IMPORTED_MODULE_8__, _lib_sanity__WEBPACK_IMPORTED_MODULE_10__, _utils_navigation__WEBPACK_IMPORTED_MODULE_11__, src_pages_error__WEBPACK_IMPORTED_MODULE_12__]);
  38. ([_components_Sanity_Page__WEBPACK_IMPORTED_MODULE_8__, _lib_sanity__WEBPACK_IMPORTED_MODULE_10__, _utils_navigation__WEBPACK_IMPORTED_MODULE_11__, src_pages_error__WEBPACK_IMPORTED_MODULE_12__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
  39. const ProductUpdatePage = ({ hasError , page })=>{
  40. const { lang } = next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_4___default()();
  41. const router = (0,next_router__WEBPACK_IMPORTED_MODULE_3__.useRouter)();
  42. if (router.isFallback) {
  43. return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", {
  44. className: (_changelog_module_scss__WEBPACK_IMPORTED_MODULE_13___default().container),
  45. children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_dls_Spinner_Spinner__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, {})
  46. });
  47. }
  48. if (hasError) {
  49. return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(src_pages_error__WEBPACK_IMPORTED_MODULE_12__["default"], {
  50. statusCode: 500
  51. });
  52. }
  53. return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.Fragment, {
  54. children: [
  55. /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_components_NextSeoWrapper__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {
  56. // @ts-ignore
  57. title: page.title,
  58. // @ts-ignore
  59. url: (0,_utils_navigation__WEBPACK_IMPORTED_MODULE_11__/* .getCanonicalUrl */ .Z2)(lang, (0,_utils_navigation__WEBPACK_IMPORTED_MODULE_11__/* .getProductUpdatesUrl */ .pO)(page.slug.current))
  60. }),
  61. /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_components_PageContainer__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, {
  62. children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("div", {
  63. className: (_changelog_module_scss__WEBPACK_IMPORTED_MODULE_13___default().container),
  64. children: [
  65. /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", {
  66. className: (_changelog_module_scss__WEBPACK_IMPORTED_MODULE_13___default().backIconContainer)
  67. }),
  68. /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_components_Sanity_LocalizationMessage__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z, {}),
  69. /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_components_Sanity_Page__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z, {
  70. page: page,
  71. isIndividualPage: true
  72. })
  73. ]
  74. })
  75. })
  76. ]
  77. });
  78. };
  79. const getStaticProps$1 = async (context)=>{
  80. const { id ="" } = context.params;
  81. try {
  82. const page = await (0,_lib_sanity__WEBPACK_IMPORTED_MODULE_10__/* .executeGroqQuery */ .a)('*[_type == "productUpdate" && slug.current == $slug][0]', {
  83. slug: id
  84. }, true);
  85. if (!page) {
  86. // @ts-ignore
  87. throw new src_pages_error__WEBPACK_IMPORTED_MODULE_12__["default"]("invalid slug");
  88. }
  89. return {
  90. props: {
  91. page
  92. },
  93. revalidate: _utils_staticPageGeneration__WEBPACK_IMPORTED_MODULE_14__/* .REVALIDATION_PERIOD_ON_ERROR_SECONDS */ .eW
  94. };
  95. } catch (error) {
  96. return {
  97. props: {
  98. hasError: true
  99. },
  100. revalidate: _utils_staticPageGeneration__WEBPACK_IMPORTED_MODULE_14__/* .REVALIDATION_PERIOD_ON_ERROR_SECONDS */ .eW
  101. };
  102. }
  103. };
  104. const getStaticPaths = async ()=>{
  105. const pages = await (0,_lib_sanity__WEBPACK_IMPORTED_MODULE_10__/* .executeGroqQuery */ .a)('*[_type == "productUpdate"]{ slug}');
  106. return {
  107. paths: pages.map((page)=>({
  108. params: {
  109. id: page.slug.current
  110. }
  111. })),
  112. fallback: true
  113. };
  114. };
  115. var serverComponentModule = /*#__PURE__*/Object.freeze({
  116. __proto__: null,
  117. getStaticProps: getStaticProps$1,
  118. getStaticPaths: getStaticPaths,
  119. 'default': ProductUpdatePage
  120. });
  121. /*
  122. * This file is a template for the code which will be substituted when our webpack loader handles non-API files in the
  123. * `pages/` directory.
  124. *
  125. * We use `__SENTRY_WRAPPING_TARGET_FILE__.cjs` as a placeholder for the path to the file being wrapped. Because it's not a real package,
  126. * this causes both TS and ESLint to complain, hence the pragma comments below.
  127. */
  128. const userPageModule = serverComponentModule ;
  129. const pageComponent = userPageModule ? userPageModule.default : undefined;
  130. const origGetInitialProps = pageComponent ? pageComponent.getInitialProps : undefined;
  131. const origGetStaticProps = userPageModule ? userPageModule.getStaticProps : undefined;
  132. const origGetServerSideProps = userPageModule ? userPageModule.getServerSideProps : undefined;
  133. // eslint-disable-next-line @typescript-eslint/no-explicit-any
  134. const getInitialPropsWrappers = {
  135. '/_app': _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapAppGetInitialPropsWithSentry,
  136. '/_document': _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapDocumentGetInitialPropsWithSentry,
  137. '/_error': _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapErrorGetInitialPropsWithSentry,
  138. };
  139. const getInitialPropsWrapper = getInitialPropsWrappers['/product-updates/[id]'] || _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapGetInitialPropsWithSentry;
  140. if (pageComponent && typeof origGetInitialProps === 'function') {
  141. pageComponent.getInitialProps = getInitialPropsWrapper(origGetInitialProps) ;
  142. }
  143. const getStaticProps =
  144. typeof origGetStaticProps === 'function'
  145. ? _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapGetStaticPropsWithSentry(origGetStaticProps, '/product-updates/[id]')
  146. : undefined;
  147. const getServerSideProps =
  148. typeof origGetServerSideProps === 'function'
  149. ? _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapGetServerSidePropsWithSentry(origGetServerSideProps, '/product-updates/[id]')
  150. : undefined;
  151. const pageWrapperTemplate = pageComponent ? _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapPageComponentWithSentry(pageComponent ) : pageComponent;
  152. __webpack_async_result__();
  153. } catch(e) { __webpack_async_result__(e); } });
  154. /***/ }),
  155. /***/ 75184:
  156. /***/ ((module) => {
  157. module.exports = require("@reduxjs/toolkit");
  158. /***/ }),
  159. /***/ 11791:
  160. /***/ ((module) => {
  161. module.exports = require("@sanity/image-url");
  162. /***/ }),
  163. /***/ 58097:
  164. /***/ ((module) => {
  165. module.exports = require("@sentry/nextjs");
  166. /***/ }),
  167. /***/ 59003:
  168. /***/ ((module) => {
  169. module.exports = require("classnames");
  170. /***/ }),
  171. /***/ 59606:
  172. /***/ ((module) => {
  173. module.exports = require("humps");
  174. /***/ }),
  175. /***/ 12372:
  176. /***/ ((module) => {
  177. module.exports = require("lodash/findKey");
  178. /***/ }),
  179. /***/ 98492:
  180. /***/ ((module) => {
  181. module.exports = require("lodash/groupBy");
  182. /***/ }),
  183. /***/ 35526:
  184. /***/ ((module) => {
  185. module.exports = require("lodash/random");
  186. /***/ }),
  187. /***/ 64042:
  188. /***/ ((module) => {
  189. module.exports = require("lodash/range");
  190. /***/ }),
  191. /***/ 16641:
  192. /***/ ((module) => {
  193. module.exports = require("next-seo");
  194. /***/ }),
  195. /***/ 60866:
  196. /***/ ((module) => {
  197. module.exports = require("next-translate/useTranslation");
  198. /***/ }),
  199. /***/ 3280:
  200. /***/ ((module) => {
  201. module.exports = require("next/dist/shared/lib/app-router-context.js");
  202. /***/ }),
  203. /***/ 92796:
  204. /***/ ((module) => {
  205. module.exports = require("next/dist/shared/lib/head-manager-context.js");
  206. /***/ }),
  207. /***/ 3539:
  208. /***/ ((module) => {
  209. module.exports = require("next/dist/shared/lib/i18n/detect-domain-locale.js");
  210. /***/ }),
  211. /***/ 34014:
  212. /***/ ((module) => {
  213. module.exports = require("next/dist/shared/lib/i18n/normalize-locale-path.js");
  214. /***/ }),
  215. /***/ 78524:
  216. /***/ ((module) => {
  217. module.exports = require("next/dist/shared/lib/is-plain-object.js");
  218. /***/ }),
  219. /***/ 78020:
  220. /***/ ((module) => {
  221. module.exports = require("next/dist/shared/lib/mitt.js");
  222. /***/ }),
  223. /***/ 64406:
  224. /***/ ((module) => {
  225. module.exports = require("next/dist/shared/lib/page-path/denormalize-page-path.js");
  226. /***/ }),
  227. /***/ 24964:
  228. /***/ ((module) => {
  229. module.exports = require("next/dist/shared/lib/router-context.js");
  230. /***/ }),
  231. /***/ 93431:
  232. /***/ ((module) => {
  233. module.exports = require("next/dist/shared/lib/router/utils/add-locale.js");
  234. /***/ }),
  235. /***/ 11751:
  236. /***/ ((module) => {
  237. module.exports = require("next/dist/shared/lib/router/utils/add-path-prefix.js");
  238. /***/ }),
  239. /***/ 46220:
  240. /***/ ((module) => {
  241. module.exports = require("next/dist/shared/lib/router/utils/compare-states.js");
  242. /***/ }),
  243. /***/ 10299:
  244. /***/ ((module) => {
  245. module.exports = require("next/dist/shared/lib/router/utils/format-next-pathname-info.js");
  246. /***/ }),
  247. /***/ 23938:
  248. /***/ ((module) => {
  249. module.exports = require("next/dist/shared/lib/router/utils/format-url.js");
  250. /***/ }),
  251. /***/ 29565:
  252. /***/ ((module) => {
  253. module.exports = require("next/dist/shared/lib/router/utils/get-asset-path-from-route.js");
  254. /***/ }),
  255. /***/ 35789:
  256. /***/ ((module) => {
  257. module.exports = require("next/dist/shared/lib/router/utils/get-next-pathname-info.js");
  258. /***/ }),
  259. /***/ 1897:
  260. /***/ ((module) => {
  261. module.exports = require("next/dist/shared/lib/router/utils/is-bot.js");
  262. /***/ }),
  263. /***/ 1428:
  264. /***/ ((module) => {
  265. module.exports = require("next/dist/shared/lib/router/utils/is-dynamic.js");
  266. /***/ }),
  267. /***/ 28854:
  268. /***/ ((module) => {
  269. module.exports = require("next/dist/shared/lib/router/utils/parse-path.js");
  270. /***/ }),
  271. /***/ 91292:
  272. /***/ ((module) => {
  273. module.exports = require("next/dist/shared/lib/router/utils/parse-relative-url.js");
  274. /***/ }),
  275. /***/ 34567:
  276. /***/ ((module) => {
  277. module.exports = require("next/dist/shared/lib/router/utils/path-has-prefix.js");
  278. /***/ }),
  279. /***/ 80979:
  280. /***/ ((module) => {
  281. module.exports = require("next/dist/shared/lib/router/utils/querystring.js");
  282. /***/ }),
  283. /***/ 93297:
  284. /***/ ((module) => {
  285. module.exports = require("next/dist/shared/lib/router/utils/remove-trailing-slash.js");
  286. /***/ }),
  287. /***/ 36052:
  288. /***/ ((module) => {
  289. module.exports = require("next/dist/shared/lib/router/utils/resolve-rewrites.js");
  290. /***/ }),
  291. /***/ 84226:
  292. /***/ ((module) => {
  293. module.exports = require("next/dist/shared/lib/router/utils/route-matcher.js");
  294. /***/ }),
  295. /***/ 95052:
  296. /***/ ((module) => {
  297. module.exports = require("next/dist/shared/lib/router/utils/route-regex.js");
  298. /***/ }),
  299. /***/ 59232:
  300. /***/ ((module) => {
  301. module.exports = require("next/dist/shared/lib/utils.js");
  302. /***/ }),
  303. /***/ 71853:
  304. /***/ ((module) => {
  305. module.exports = require("next/router");
  306. /***/ }),
  307. /***/ 16689:
  308. /***/ ((module) => {
  309. module.exports = require("react");
  310. /***/ }),
  311. /***/ 20997:
  312. /***/ ((module) => {
  313. module.exports = require("react/jsx-runtime");
  314. /***/ }),
  315. /***/ 66704:
  316. /***/ ((module) => {
  317. module.exports = import("@radix-ui/react-tooltip");;
  318. /***/ }),
  319. /***/ 40680:
  320. /***/ ((module) => {
  321. module.exports = import("@sanity/client");;
  322. /***/ }),
  323. /***/ 88813:
  324. /***/ ((module) => {
  325. module.exports = import("firebase/compat/analytics");;
  326. /***/ }),
  327. /***/ 33773:
  328. /***/ ((module) => {
  329. module.exports = import("firebase/compat/app");;
  330. /***/ }),
  331. /***/ 66419:
  332. /***/ ((module) => {
  333. module.exports = import("groq");;
  334. /***/ }),
  335. /***/ 63477:
  336. /***/ ((module) => {
  337. module.exports = require("querystring");
  338. /***/ })
  339. };
  340. ;
  341. // load runtime
  342. var __webpack_require__ = require("../../webpack-runtime.js");
  343. __webpack_require__.C(exports);
  344. var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
  345. var __webpack_exports__ = __webpack_require__.X(0, [11497,79165,96270,24709,57933,61239,25869,50497,36049,26083], () => (__webpack_exec__(13866)));
  346. module.exports = __webpack_exports__;
  347. })();
  348. //# sourceMappingURL=[id].js.map